//
//package com.xiaoshi2022.kamen_rider_weapon_craft.world.dimension;
//
//import net.minecraftforge.fml.common.Mod;
//import net.minecraftforge.eventbus.api.SubscribeEvent;
//import net.minecraftforge.client.event.RegisterDimensionSpecialEffectsEvent;
//import net.minecraftforge.api.distmarker.OnlyIn;
//import net.minecraftforge.api.distmarker.Dist;
//
//import net.minecraft.world.phys.Vec3;
//import net.minecraft.resources.ResourceLocation;
//import net.minecraft.client.renderer.DimensionSpecialEffects;
//
//@Mod.EventBusSubscriber
//public class HelheimDimension {
//	@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
//	public static class HelheimSpecialEffectsHandler {
//		@SubscribeEvent
//		@OnlyIn(Dist.CLIENT)
//		public static void registerDimensionSpecialEffects(RegisterDimensionSpecialEffectsEvent event) {
//			DimensionSpecialEffects customEffect = new DimensionSpecialEffects(DimensionSpecialEffects.OverworldEffects.CLOUD_LEVEL, true, DimensionSpecialEffects.SkyType.NORMAL, false, false) {
//				@Override
//				public Vec3 getBrightnessDependentFogColor(Vec3 color, float sunHeight) {
//					return color.multiply(sunHeight * 0.94 + 0.06, sunHeight * 0.94 + 0.06, sunHeight * 0.91 + 0.09);
//				}
//
//				@Override
//				public boolean isFoggyAt(int x, int y) {
//					return true;
//				}
//			};
//			event.register(new ResourceLocation("kamen_rider_weapon_craft:helheim"), customEffect);
//		}
//	}
//}
